package com.emep.changzhi.analyse.entity.basics;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author xy
 * @Description: 行业类型表
 * @date 2018/2/24 13:50
 * @version V1.0
 */
@Data
@Entity
@Table(name = "sys_industry_type_info")
public class SysIndustryTypeInfo implements Serializable {

    private static final long serialVersionUID = 2423138757115384627L;


    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String  id;
    @Column(name = "industry_type_name",columnDefinition="varchar(100) COMMENT '行业名字'" )
    private String industryTypeName;
    @Column(name = "industry_type_code",columnDefinition="varchar(100) COMMENT '系统层级码'" )
    private String industryTypeCode;
    @Column(name = "national_code",columnDefinition="varchar(100) COMMENT '国家编码'" )
    private String nationalCode;
    @Column(name = "parent_id",columnDefinition="varchar(100) COMMENT '父类型ID'" )
    private String parentId;
    @Column(name = "parentPath",columnDefinition="varchar(100) COMMENT '父级类型层级信息组合'" )
    private String parentPath;
    @Column(name = "is_delete",columnDefinition="varchar(100) COMMENT '删除状态'" )
    private  String isDelete = "0";
    @Column(name = "create_date",columnDefinition="varchar(100) COMMENT '信息录入时间'" )
    @OrderBy("create_date DESC")
    private String createDate =  String.valueOf(System.currentTimeMillis());


}
